package lang;

/**
 * User: Test
 * Date: 15.03.2008
 * Time: 12:16:52
 */
public class SQLQueryToken
{
    public enum SQLQueryTokenType {
        RESERVED,
        IDENTIFICATOR,
        SEPARATOR,
        CONDITION,
        LOGIC_CONDITION,
        VALUE
    }

    private String value;
    private SQLQueryTokenType type;

    public SQLQueryToken(String value, SQLQueryTokenType type) {
        this.type = type;
        this.value = value;
    }

    public SQLQueryTokenType getType() {
        return type;
    }

    public void setType(SQLQueryTokenType type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String toString1() {
        return "value : " + value + "; type : " + type;
    }

    public String toString() {
        return value;
    }
}
